All Questions
4,985 questions
1vote
0answers
35views
MathJax not rendering equations in WordPress AJAX-loaded content (renders only after manual typesetPromise())
I’m building a custom WordPress plugin that loads math-based questions and answers using AJAX. These questions contain LaTeX-style MathJax expressions (e.g., $$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$)...
1vote
0answers
61views
WooCommerce custom ajax product filter
I am trying to build a custom ajax product filters. My main objective is when user is on X category page, I will show him some size option(as checkbox) for filtering. So when user check single/...
0votes
0answers
26views
get_post_field 'post_content' via Ajax always undefined
I'm running the following handler to process request to a custom post type's contents add_action('wp_ajax_uipp_get_button_content', 'uipp_get_button_content'); add_action('...
0votes
0answers
22views
Loading Gutenberg Blocks with Ajax is stripping away scripts
I'm successfully loading a custom post type's wp-content using ajax, but when it loads, a whole lot of the scripts are being stripped away. fetch(ajax_object.ajax_url, { method: "POST", ...
0votes
1answer
58views
Woocommerce - ajax load more not working when ajax filtering by two or more categories
I made a code for woocommerce product listings with ajax load more by scroll and ajax filters by category - all works great, but there is one case, when it didn't. Only on the main shop page when I ...
0votes
0answers
92views
How to change shortcode after user interacts with front-end button?
I'm using Royal Audio Player as a plugin for a website I'm creating, and I want to have something similar to what this guy created for his Voiceover website. Essentially, I want text above the audio ...
0votes
0answers
82views
How to pass an array from Javascript to admin-ajax.php using Fetch for processing
I have been struggling these days when passing a data array in WordPress to be processed via admin-ajax.php. I have added a button in the WooCommerce hook 'woocommerce_after_shop_loop_item' that ...
2votes
1answer
44views
How can I with implement ajax based numbered pagination to posts which are displayed via ajax?
What I'm trying to accomplish is producing numbered pagination for posts which are loaded via an ajax function. I have to make the numbered pagination work via ajax as well. Explanation of each code ...
0votes
1answer
61views
How to use AJAX in a widget only on the admin backend?
I'm trying to create a simple WordPress widget for AI text generation. The widget should allow the user to type a prompt, set a word limit, and click a "Generate Text" button. I want to use ...
1vote
2answers
76views
How to handle simultaneous AJAX requests which update the same metadata?
In my Wordpress site, each user has a meta data key (i.e., "saved") which contains a list of post IDs stored as an array. The list is updated everytime the user clicks the "save" ...
1vote
1answer
88views
WebP Express does not process images loaded via AJAX in WordPress
I am using the WebP Express plugin in WordPress, and it correctly replaces elements with tags when the page loads initially. However, when I load additional content via AJAX, the newly added images ...
0votes
0answers
31views
WordPress AJAX Appending Data output a mystery "0" [duplicate]
I doubt anyone can help but I've been trying to figure this out for far too long! I have some AJAX that grabs some basic user meta and uses that for a WP_Query, then just overrides the list of items ...
0votes
1answer
42views
WordPress Add/Remove User Meta via AJAX
I'm trying to create a simple "favorite" product list. Basically, when viewing a list of products someone can click a button that adds it to your favorites. The idea is, they click the ...
0votes
0answers
80views
How can I prevent the page from refreshing and only update the cart using AJAX [duplicate]
I am using AJAX to update the WooCommerce cart without refreshing the entire page, and the code mostly works as expected. However, after updating the cart, the page still refreshes. I have already ...
-1votes
1answer
95views
Contact form 7 refreshing the page when i submit form. Form not submitting using Ajax form submission
I'm using Contact Form 7 in Wordpress. I have added a custom botton to submit form because i am displaying a confirm box if user click 'yes' then form submit but when user click yes then page reload ...